package 进阶知识及API类库;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2017/11/8 19:02
 */
public class 泛型Generic {
    private Object object;

    public Object getObject() {
        System.out.println(object.getClass().getName());
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public static void main(String[] args) {
        泛型Generic generic = new 泛型Generic();
        generic.object = new Integer(24244);
        generic.getObject();
        泛型Generic generic1 = new 泛型Generic();
        generic1.object = "laowang";
        generic1.getObject();
    }
}
